//
//  HBBaseRefreshRequest.h
//  HeartBeat
//
//  Created by karong on 2023/8/23.
//

#import "HBBaseRequest.h"

NS_ASSUME_NONNULL_BEGIN
@protocol PagableRequestPotocol <NSObject>
@optional
@property (nonatomic, assign) NSTimeInterval page;
@property (nonatomic, assign) BOOL loading;
@property (nonatomic, assign) BOOL haveMore;
@property (nonatomic, assign) NSInteger totalCount;
@property (nonatomic, strong) id reponseObject;
- (void)refreshDataSuccess:(回调一个数组)success failed:(失败回调)failed;
- (void)loadMoreDataSuccess:(回调一个数组)success failed:(失败回调)failed;
@end

@interface HBBaseRefreshRequest : HBBaseRequest <PagableRequestPotocol>
- (void)loadSuccess:(回调一个数组)success withArray:(NSArray *)array;
@end

NS_ASSUME_NONNULL_END
